package com.ctp.display.manager;

import java.util.Observable;

import org.hraink.futures.ctp.thostftdcuserapistruct.CThostFtdcTradingAccountField;

public class AccountManager extends Observable {

	private static AccountManager instance = new AccountManager();

	private CThostFtdcTradingAccountField accountField = null;

	private AccountManager() {
	}

	public void setTradingAccount(CThostFtdcTradingAccountField accountField) {
		this.accountField = accountField;
		
		setChanged();
		notifyObservers(accountField);
	}

	public CThostFtdcTradingAccountField getAccountField() {
		return accountField;
	}

	public static AccountManager instance() {
		return instance;
	}

}
